package com.bishe.supermarket.service;

import com.bishe.supermarket.mapper.SaveMapper;
import com.bishe.supermarket.pojo.Save;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreService {

    @Autowired
    SaveMapper saveMapper;
    public List<Save> selectSave(){

        List<Save> list = saveMapper.selectAll();

        return list;

    }

    public List<Save> selectSaveInfo(String name){

        List<Save> list = saveMapper.seleceByName(name);


        return list;

    }
}
